<div class="pa clearfix">
  <div class="span-p70 colborder">
    <h3>文章分类列表</h3>
    <hr/>
    <div>
      <table>
        <tr>
          <th>Id</th>
          <th>分类名称</th>
          <th>操作</th>
        </tr>
        <% @categories.each do |category| %>
          <tr>
            <td><%= category.id %></td>
            <td><%= category.name %></td>
            <td>
              <%= link_to '编辑', "/categories/edit/#{category.id}" %> |
              <%= link_to '删除', "/categories/delete/#{category.id}", :confirm => '你确定要删除吗？' %>
            </td>
          </tr>
        <% end %>
      </table>
      <div class="c666">
        <%= will_paginate @categories %>
      </div>
    </div>
  </div>
  <div class="span-5 last">
    <%= render 'layouts/admin/articles_sidebar' %>
  </div>
</div>